package com.springmvc.api.controller;

import com.springmvc.api.response.Response;
import com.springmvc.api.security.IgnoreSecurity;
import com.springmvc.api.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cheng.xi on 11/30/15.
 */
@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public Response login(){
        boolean result = loginService.login();
        return new Response().success(result);
    }
}
